﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/MasterPage2.master" AutoEventWireup="true" CodeFile="Admin_ThongKeDoanhThuSanPhamTheoNam.aspx.cs" Inherits="ChucNang_Admin_Admin_ThongKeDoanhThuSanPhamTheoThang" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h2>THỐNG KÊ DOANH THU SẢN PHẨM THEO NĂM</h2>
 <br />
    Chọn sản phẩm:<asp:DropDownList ID="dropdownlistSanPham" runat="server" 
        DataSourceID="ObjectDataSource1" DataTextField="TenSP" DataValueField="Id">
    </asp:DropDownList>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        DeleteMethod="Delete" InsertMethod="Insert" 
        OldValuesParameterFormatString="original_{0}" SelectMethod="SANPHAM_LayTatCa" 
        TypeName="DataDSTableAdapters.SANPHAMTableAdapter" UpdateMethod="Update">
        <DeleteParameters>
            <asp:Parameter Name="Original_Id" Type="Int32" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="MaSP" Type="String" />
            <asp:Parameter Name="TenSP" Type="String" />
            <asp:Parameter Name="MoTa" Type="String" />
            <asp:Parameter Name="HinhAnh" Type="String" />
            <asp:Parameter Name="NhaSanXuat" Type="String" />
            <asp:Parameter Name="SoLuong" Type="Int32" />
            <asp:Parameter Name="TrangThaiBan" Type="Boolean" />
            <asp:Parameter Name="ThoiGianDang" Type="DateTime" />
            <asp:Parameter Name="DuocYeuThich" Type="Boolean" />
            <asp:Parameter Name="GiaCu" Type="Double" />
            <asp:Parameter Name="GiaMoi" Type="Double" />
            <asp:Parameter Name="DonViTinh" Type="String" />
            <asp:Parameter Name="Id_PhanLoai" Type="Int32" />
            <asp:Parameter Name="Original_Id" Type="Int32" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="MaSP" Type="String" />
            <asp:Parameter Name="TenSP" Type="String" />
            <asp:Parameter Name="MoTa" Type="String" />
            <asp:Parameter Name="HinhAnh" Type="String" />
            <asp:Parameter Name="NhaSanXuat" Type="String" />
            <asp:Parameter Name="SoLuong" Type="Int32" />
            <asp:Parameter Name="TrangThaiBan" Type="Boolean" />
            <asp:Parameter Name="ThoiGianDang" Type="DateTime" />
            <asp:Parameter Name="DuocYeuThich" Type="Boolean" />
            <asp:Parameter Name="GiaCu" Type="Double" />
            <asp:Parameter Name="GiaMoi" Type="Double" />
            <asp:Parameter Name="DonViTinh" Type="String" />
            <asp:Parameter Name="Id_PhanLoai" Type="Int32" />
        </InsertParameters>
    </asp:ObjectDataSource>
    <asp:Button ID="btnThongKe" runat="server" onclick="btnThongKe_Click" 
        Text="Thống kê" />
    <br />
    <br />
    
    <center>
        <asp:Image ID="imgSanPham" runat="server" Height="150px" Width="150px" />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        BackColor="Black" BorderColor="Silver" BorderStyle="None" BorderWidth="1px" 
        CellPadding="4" Height="61px" Width="354px">
        <RowStyle BackColor="White" BorderColor="Black" ForeColor="#330099" />
        <Columns>
            <asp:BoundField DataField="Nam" HeaderText="Năm" />
            <asp:BoundField DataField="DoanhThu" HeaderText="Doanh Thu" />
        </Columns>
        <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
        <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
    </asp:GridView>
    </center>
    <br />
    </asp:Content>

